//
//  FactoryTreeModel.h
//  Rail
//
//  Created by huyuchen on 2018/3/19.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "BaseModel.h"

@interface FactoryTreeAreaModel : BaseModel
@property (nonatomic, copy) NSString *areaid;
@property (nonatomic, copy) NSString *area_name;
@property (nonatomic, assign) WorkAreaStatus status;
@end

@interface FactoryTreeSectionModel : BaseModel
@property (nonatomic, copy) NSString *sectionid;
@property (nonatomic, copy) NSString *section_name;
@property (nonatomic, copy) NSString *section_num;
@property (nonatomic, strong) NSArray<FactoryTreeAreaModel *> *area_list;
//额外参数
@property (nonatomic, assign) BOOL isSelect;
@property (nonatomic, assign) BOOL isEnd;
@end

@interface FactoryTreeStationModel : BaseModel
@property (nonatomic, copy) NSString *stationid;
@property (nonatomic, copy) NSString *station_name;
@property (nonatomic, copy) NSString *station_num;
@property (nonatomic, strong) NSArray<FactoryTreeAreaModel *> *area_list;
@property (nonatomic, strong) NSArray<FactoryTreeSectionModel *> *section_list;
//额外参数
@property (nonatomic, assign) BOOL isStart;
@property (nonatomic, assign) BOOL isEnd;
@property (nonatomic, assign) BOOL isSelect;
@end

@interface FactoryTreeLineModel : BaseModel<NSCopying>
@property (nonatomic, copy) NSString *lineid;
@property (nonatomic, copy) NSString *line_name;
@property (nonatomic, copy) NSString *line_color;
@property (nonatomic, strong) NSArray<FactoryTreeStationModel *> *station_list;
//额外属性
@property (nonatomic, assign) BOOL isSection;
@end

@interface FactoryTreeModel : BaseModel
@property (nonatomic, strong) NSArray<FactoryTreeLineModel *> *list;
@end
